<?php

include_once 'config.php';;


session_start();
global $formatoData;
$idSessao = $_SESSION["idSessao"];
$sql = "UPDATE sessao SET ultimoAcesso = '".date($formatoData)."' WHERE idSessao = :idSessao";
$queryIntra = new ConsultaPreparada($cnxIntra,$sql);
$queryIntra->liga('idSessao', $idSessao);
$queryIntra->executa();
$_SESSION["idSessao"]=null;

header( "Location: $URL" );
?>